package com.medical.system.controller.monitor;


import cn.dev33.satoken.annotation.SaCheckPermission;
import com.medical.core.result.Result;
import com.medical.system.model.dto.OperLogDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@Tag(name = "08.监控-操作日志记录")
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v1/operlog")
public class SysOperLogController {

    @Operation(summary = "操作日志列表")
    @SaCheckPermission("monitor:operlog:export")
    @GetMapping("/list")
    public Result list() {
        return Result.success();
    }

    @Operation(summary = "导出操作日志")
    @SaCheckPermission("monitor:operlog:export")
    @PostMapping("/export")
    public void export() {
    }

    @Operation(summary = "删除操作日志")
    @SaCheckPermission("monitor:operlog:export")
    @DeleteMapping("/{idStr}")
    public Result delete(@PathVariable  String idStr) {
        return Result.success();
    }

    @PostMapping("/save")
    public Result saveLog(@RequestBody OperLogDTO operLogDTO) {
        return null;
    }

}
